ViewService.showError Method

Shows the given error in the application.
 

Parameters

options

Type: Object
The options for showing the error. Options are:
     exceptionObject:    [Type: Object]      - A .NET exception object from either the WebAPI, or from MVC.
     isFatal:            [Type: Boolean]     - (optional) Whether this error is fatal or not (full screen). This should be ignored unless the error is coming from an MVC controller.
     element:            [Type: HTMLElement] - (optional) The element to show the loading overlay on. This is mostly used for adapters to show errors within themselves.
 

Return Value


Type: HTMLElement
If this is showing for an element, then the created HTMLElement is returned. Otherwise, null. 

Examples